package cn.systemManage.bean;

import java.sql.Timestamp;

import cn.basic.BasicBean;

/**
 * UserInfo entity. @author MyEclipse Persistence Tools
 */

public class UserBean extends BasicBean implements java.io.Serializable {

	// Fields

	private Integer id;
	private String username;
	private String password;
	private Integer sex;
	private Integer age;
	private Timestamp lastLoginTime;
	private String lastLoginIp;
	private String realName;
	private Integer isAdmin;

	// Constructors

	/** default constructor */
	public UserBean() {
	}

	/** minimal constructor */
	public UserBean(Integer id, Integer sex, Integer age, Integer isAdmin) {
		this.id = id;
		this.sex = sex;
		this.age = age;
		this.isAdmin = isAdmin;
	}

	/** full constructor */
	public UserBean(Integer id, String username, String password, Integer sex,
			Integer age, Timestamp lastLoginTime, String lastLoginIp,
			String realName, Integer isAdmin) {
		this.id = id;
		this.username = username;
		this.password = password;
		this.sex = sex;
		this.age = age;
		this.lastLoginTime = lastLoginTime;
		this.lastLoginIp = lastLoginIp;
		this.realName = realName;
		this.isAdmin = isAdmin;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getSex() {
		return this.sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Integer getAge() {
		return this.age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Timestamp getLastLoginTime() {
		return this.lastLoginTime;
	}

	public void setLastLoginTime(Timestamp lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getLastLoginIp() {
		return this.lastLoginIp;
	}

	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
	}

	public String getRealName() {
		return this.realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public Integer getIsAdmin() {
		return this.isAdmin;
	}

	public void setIsAdmin(Integer isAdmin) {
		this.isAdmin = isAdmin;
	}

}